/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package wso.bus;

import wso.dao.OriginDao;
import wso.dto.WsoOrigin;

/**
 *
 * @author Violet_Ink
 */
public class OriginBusImpl implements OriginBus{

    private OriginDao originDao;

    public void setOriginDao(OriginDao originDao) {
        this.originDao = originDao;
    }

    public void deleteOrigin(String originid) {
        originDao.deleteOrigin(originid);
    }

    public void saveorUpdateOrigin(WsoOrigin origin) {
        originDao.saveOrUpdateOrigin(origin);
    }

    public WsoOrigin[] getAllOrigin() {
        return originDao.getAllOrigin();
    }

    public WsoOrigin getOrigin(String originid) {
        return originDao.getOrigin(originid);
    }
}
